#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <string>
#include <unordered_map>
using namespace std;
bool prime(int x)
{
    if (x < 2 || (x > 2 && x % 2 == 0)) return false;
    for (int i = 2;i < x / 2;i++)
    {
        if (x % i == 0) return false;
    }
    return true;
}
int main()
{
    string s;
    cin >> s;
    cerr << s << endl;
    unordered_map<char, int> m;
    for (auto& a : s)
    {
        ++m[a];
    }
    int maxn = 0, minn = 1000;
    for (auto& a : m)
    {
        cerr << a.first << ":" << a.second << endl;
        if (a.second > maxn) maxn = a.second;
        if (a.second < minn) minn = a.second;
    }
    int x = maxn - minn;
    if (prime(x))
    {
        cout << "Lucky Word" << endl << x << endl;
        cerr << "x=" << x << endl;
    }
    else
    {
        cout << "No Answer" << endl << 0 << endl;
        cerr << 0 << endl;
    }
    return 0;
}
